package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.Activity;

import java.util.List;

public interface ActivityService extends IService<Activity> {

    /**
     * 新增
     */
    public void add(Activity activity);

    /**
     * 删除
     */
    public void deleteById(Integer id);
    /**
     * 批量删除
     */
    public void deleteBatch(List<Integer> ids);

//    /**
//     * 修改
//     */
//    public void updateById(Activity activity);

    /**
     * 根据ID查询
     */
    public Activity selectById(Integer id);

    /**
     * 查询所有
     */
    public List<Activity> selectAll(Activity activity);

    /**
     * 分页查询
     */
    public Page<Activity> selectPage(Activity activity, Integer pageNum, Integer pageSize);

    List<Activity> selectTop();
}
